package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_6 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity6);
        Button bt13=(Button)findViewById(R.id.bt13);
        Button bt14=(Button)findViewById(R.id.bt14);
        bt13.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name7","怒言反对，大打出手,行为恶劣强制退赛");
                editor.commit();
                Intent intent=new Intent(Star_6.this,Star_17.class);
                startActivity(intent);
            }
        });

        bt14.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name7","再次公演失误却排名更前，如何感言表明无畏排名高低");
                editor.commit();
                Intent intent=new Intent();
                intent.setClass(Star_6.this,Star_7.class);
                startActivity(intent);
            }
        });
    }
}
